package com.itheima.method;

public class Demo6Method {
    public static void main(String[] args) {
        printOddNumber(8,80);

    }
    public static void printOddNumber(int n,int m){
        System.out.println(n + "到" + m +"之间的奇数");
        for(int i = n; i <= m; i++){
            if(i % 2 == 1){
                System.out.println(i);
            }
        }
    }
}
